package run.siyuan.manag.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import run.siyuan.manag.entity.SysMenu;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 * 菜单管理 Mapper 接口
 * </p>
 *
 * @author siyuan
 * @since 2021-01-18
 */
@Mapper
public interface SysMenuMapper extends BaseMapper<SysMenu> {

    /**
     * 根据角色id查询菜单
     *
     * @param roleId
     * @return {@link run.siyuan.manag.entity.SysMenu}
     */
    List<SysMenu> findByUserName(@Param(value="roleId")String roleId);
}
